package com.easylinkin.linkappapi.lobar.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 预警通知人表
 * </p>
 *
 * @author Xiaoyang
 * @since 2022-10-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("app_warning_notifier")
public class WarningNotifier extends Model<WarningNotifier> {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId("id")
    private String id;

    /**
     * 项目ID(linkapp_tenant)
     */
    @TableField("tenant_id_")
    private String tenantId;

    /**
     * 预警类型 1出勤预警 2班组预警 3年龄预警 4证书到期预警 5人员出场异常预警 6疫情预警
     */
    @TableField("warning_type")
    private Integer warningType;

    /**
     * 预警通知人，userIds
     */
    @TableField("warning_notifiers")
    private String warningNotifiers;

    /**
     * 推送开关，0停用，1启用
     */
    @TableField("notice_switch")
    private Integer noticeSwitch;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
